package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.LawsTypeDao;
import com.neuedu.model.LawsType;
import com.neuedu.service.LawsTypeService;

@Service
public class LawsTypeServiceImpl implements LawsTypeService {

	// 依赖注入
	@Autowired
	private LawsTypeDao LawsTypeDao;
	
	public void setLawsTypeDao(LawsTypeDao LawsTypeDao) {
		this.LawsTypeDao = LawsTypeDao;
	}
	
	@Override
	public int countLawsType() {
		return LawsTypeDao.countLawsType();
	}

	@Override
	public List<LawsType> findAll(Map<String, Object> map) {
		return LawsTypeDao.findAll(map);
	}

	@Override
	public int addLawsType(LawsType u) {
		return LawsTypeDao.addLawsType(u);
	}

	@Override
	public int updateLawsType(LawsType u) {
		return LawsTypeDao.updateLawsType(u);
	}

	@Override
	public int deleteLawsType(int id) {
		return LawsTypeDao.deleteLawsType(id);
	}

	@Override
	public List<LawsType> findList() {
		// TODO Auto-generated method stub
		return LawsTypeDao.findList();
	}

}
